<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天津市粮油集团有限公司 OA办公自动化协作平台</title>
<link href="<%=basePath%>reminded/style/css.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>ajaxFramework/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath %>reminded/js/DivTree.js"></script>
<script src="<%=basePath %>reminded/js/Tree.js"></script>
<script src="<%=basePath %>reminded/js/Node.js"></script>
<script src="<%=basePath %>reminded/js/peoples.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/init.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/ux/ux-all.js"></script>	
<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.form.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext/extension/window/window.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxfileupload.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/fileUpload/ajaxFileZx.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/system/selectusertreecheck.js"></script>
	<script type="text/javascript" src="<%=basePath%>FCKeditor/fckeditor.js"></script>
	<script type="text/javascript" src="<%=basePath %>email/js/writemailfrom.js"></script>
<script type="text/javascript">
       window.onload = function(){parent.iFrameHeight();}
     
	</script>
<script type="text/javascript">
	//初始化方法
	function init(){
	  initselectusertreecheck();
	  
}
//定义初始化程序
window.onload = init;
	
</script>
<script type="text/javascript">
	var checkSubmitFlg = false;
	function checkSubmit() {
		 if (!checkSubmitFlg) {
		
		// 第一次提交
		  checkSubmitFlg = true;
		  return true;
		 } else {
		
		//重复提交
		  //alert("Submit again!");
		  return false;
		 }
	}
	function isEmpty(str){
		if(str==null || str.length==0) return true;
		else 
		return false;
	}
	function sub(){
	    if(isEmpty(document.getElementById("title").value) ){ alert("请填写题目！");document.getElementById("title").focus(); return false;}
		if(isEmpty(document.getElementById("content").value) ){ alert("请填写内容！");document.getElementById("content").focus(); return false;}
		if(isEmpty(document.getElementById("name_list").value) ){ alert("请选择通知人！");return false;}

//        document.getElementById("sub").href="<%=basePath %>tjsinfo/tjsoa/reminded/remindedList.do";
		copyForm.submit();	
	}
</script>

<style>
		body{font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif;}
		a{color:#000; text-decoration:none;}
		.img{border:0px;}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 820px;
			height: 500px;
			background-color: gray;
			z-index:1001;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=80);
		}
		.tree {
			display: none;
			position: absolute;
			top: 20%;
			left: 20%;
			width: 295px;
			height: 305px;
			border: 16px solid #FFF;
			border-bottom:none;
			background-color: white;
			z-index:1002;
			overflow: auto;
		}
</style>
</head>

<body>
<div id="tab" style="width:100%;height:490px;font-size:14px;">
	<div id="index_title" style="background:#d3eaef;height:30px;" width="100%">
	<ul>
		<li class="over"><a href="<%=basePath %>tjsinfo/tjsoa/reminded/remindedList.do" style="float:right;margin-top:3px;"><img src="<%=basePath %>reminded/images/return1.gif"  /></a>
		<span>特殊提醒</span></li>
	</ul>
	</div>
	<div class="tab_add" width="100%" height="100%">
    <form name="copyForm" action="<%=basePath %>tjsinfo/tjsoa/reminded/remindedSave.do" method="post" onsubmit="return checkSubmit();">
      <table width="100%" border="0" cellspacing="0" class="tab_add01">
        <tr>
          <th width="30%"><a href="javascript:void(0)" >选择通知人：</a></th>
          <td width="70%">
          <input  id="id_list" name="id_list" type="hidden" />
		  <input  id="name_list" name="name_list" size="76" maxlength="100" style="border:solid 1px #a8c7ce; height:20px;" onclick="selectusertreecheckwinshow('id_list','name_list','node')"/>
		  <input id="basePath" value="<%=basePath%>" type="hidden"/></td>
        </tr>
        <tr>
          <th width="30%">题目：</th>
          <td width="70%"><input type="text" name="title" id="title" size="76" maxlength="100" style="border:solid 1px #a8c7ce; height:20px;" /></td>
        </tr>
        <tr>
          <th width="30%">内容：</th>
          <td width="70%"><textarea rows="10" cols="65" id="content" name="content" style="border:solid 1px #a8c7ce" ></textarea>
			</td>
        </tr>
       </table>
    </form>
    
  </div>
  <div style="height:20px; text-align:center; float:right; padding-right:0px; padding-top:4px;">
		<a id="sub" onclick="sub();" style="cursor:hand"><img src="<%=basePath %>reminded/images/main_50.gif" width="40" height="15" border="0" /></a>
    	<a href="<%=basePath %>tjsinfo/tjsoa/reminded/remindedList.do" style="cursor:hand"><img src="<%=basePath %>reminded/images/main_51.gif" width="40" height="15" border="0" /></a>
    </div>
  <div class="clear"></div>
</div>
</body>
</html>